<h4 id="comments">{{ post.comments.count() }}条评论</h4>
<ul class="comments">
    <li class="comments">

    </li>
    {% for comment in comments %}
    <li class="comments">
        <div class="comment-item">
            <div class="profile-thumbnail float-left">
                <a href="{{ url_for('.user', username=comment.author.username) }}">
                    <img width="26px" height="26px" class="img-rounded profile-thumbnail" src="{{ comment.author.gravatar(size=40) }}" />
                </a>
            </div>
            <div class="comments-author float-left">
                <a href="{{ url_for('.user', username=comment.author.username) }}">
                    {{ comment.author.username }}
                </a>
            </div>
            <div class="comments-date float-left">{{ moment(comment.timestamp).fromNow() }}</div>
            <div class="clear-both"></div>

        <div class="comment-body" >
            {% if comment.disabled %}
            <p><i>这条评论已被一位中等权限者限制</i></p>
            {% endif %}
            {% if moderate or not comment.disabled %}
                {% if comment.body_html %}
                    {{ comment.body_html | safe }}
                {% else %}
                    {{ comment.body }}
                {% endif %}
            {% endif %}
        </div>
        {% if moderate %}
            <br>
            {% if comment.disabled %}
            <a class="btn btn-default btn-xs" href="{{ url_for('.moderate_enable', id=comment.id, page=page) }}">恢复</a>
            {% else %}
            <a class="btn btn-danger btn-xs" href="{{ url_for('.moderate_disable', id=comment.id, page=page) }}">限制</a>
            {% endif %}
        {% endif %}
        </div>
    </li>
    {% endfor %}
</ul>